#pragma once

#include <vector>
#include <iostream>
#include <fstream>
#include <algorithm>
#include "MultiMedia.h"

using namespace std;

class MultiMediaRegister
{
public:
	MultiMediaRegister(void);
	~MultiMediaRegister(void);

	void addPost();
	void printPost(int index);
	void removePost(string str);
	int searchPost(string str);
	void sortRegister();
	friend ostream& operator<<(ostream &stream, MultiMediaRegister &myReg);
	friend istream& operator>>(istream &stream, MultiMediaRegister &myReg);

private:
	vector<MultiMedia> reg;
	static bool title_comp(MultiMedia post1, MultiMedia post2) { return post1.GetTitle().compare(post2.GetTitle()) < 0; }
};

